package com.example.demo.tools;

import org.springframework.stereotype.Component;
import org.springframework.web.util.HtmlUtils;

/**
 * @author : 洪俊新
 * @date : 2021/3/5 14:30
 * @description:富文本工具类
 */
@Component
public class UeditorUtil {
    public static void main(String html) {
        String temp = HtmlUtils.htmlEscapeHex(html);
        System.err.println("存数据库=\r\n" + temp);

        String returnHtml = HtmlUtils.htmlUnescape(temp);
        System.out.println("回调===\r\n" + returnHtml);

    }
}

